﻿using Core.SimpleTemp.Common;
using Core.SimpleTemp.Repositories.Internal;
using Core.Toolkit.Message;
using System;
using System.Collections.Generic;
using System.Text;

namespace Core.SimpleTemp.Application.Message
{
    [AutoDi(typeof(IMessageProvider))]
    public class DBMessageProvider : IMessageProvider
    {
        CoreDBContext _coreDBContext;
        public DBMessageProvider(CoreDBContext coreDBContext)
        {
            _coreDBContext = coreDBContext;
        }
        public IMessage CreateMessage()
        {
            return new DBMessage(coreDBContext: _coreDBContext);
        }
    }
}
